package com.example.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author hanxiaoli
 * @since 2021-08-09
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("t_user")
@ApiModel(value="User对象", description="")
public class User implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "角色属性（默认为2:用户，1：管理员）")
    private Integer roleId;

    @ApiModelProperty(value = "用户名")
    private String uName;

    @ApiModelProperty(value = "密码")
    private String password;

    @ApiModelProperty(value = "状态（1为正常0为禁用）")
    private Integer uState;

    @ApiModelProperty(value = "添加用户时间")
    private Date crearTime;

    @ApiModelProperty(value = "更改用户时间")
    private Date updateTime;


}
